﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin.NET.Application.Request;

/// <summary>
/// 商品请求类
/// </summary>
public class ProductRequest {
    
    /// <summary>
    /// 主键Id
    /// </summary> 
    public string Id { get; set; }

    /// <summary>
    /// 商品名称
    /// </summary> 
    public string Name { get; set; }

    /// <summary>
    /// 商品编码
    /// </summary> 
    public string Code { get; set; }

    /// <summary>
    /// 产地
    /// </summary> 
    public string Origin { get; set; }

    /// <summary>
    /// 原价
    /// </summary> 
    public string OriginalPrice { get; set; } 
    /// <summary>
    /// 销量
    /// </summary> 
    public int SaleCount { get; set; }
    /// <summary>
    /// 评分
    /// </summary> 
    public decimal? Rating { get; set; }

    /// <summary>
    /// 折扣价
    /// </summary> 
    public decimal?  Price { get; set; }

    /// <summary>
    /// 标签集合
    /// </summary> 
    public string TagsJson { get; set; }

    /// <summary>
    /// 描述
    /// </summary> 
    public string Description { get; set; }

    /// <summary>
    /// 商品的网页描述信息。
    /// </summary> 
    public string HtmlContent { get; set; }

    /// <summary>
    /// 生产日期
    /// </summary> 
    public DateTime? ProductionDate { get; set; }

    /// <summary>
    /// 保质期（天）
    /// </summary> 
    public int ExpirationDays { get; set; }

    /// <summary>
    /// 是否在售
    /// </summary> 
    public bool? IsEnabled { get; set; }

    /// <summary>
    /// 图片地址
    /// </summary> 
    public string ImageUrls { get; set; }

    /// <summary>
    /// 排序
    /// </summary> 
    public double? OrderNum { get; set; }

}
